|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.app.Dialog
com.facebook.widget.WebDialog
public class WebDialog
This class provides a mechanism for displaying Facebook Web dialogs inside a Dialog. Helper methods are provided to construct commonly-used dialogs, or a caller can specify arbitrary parameters to call other dialogs.
| Nested Class Summary | |
|---|---|
static class |
WebDialog.Builder
Provides a builder that allows construction of an arbitary Facebook web dialog. |
static class |
WebDialog.FeedDialogBuilder
Provides a builder that allows construction of the parameters for showing the Feed Dialog (https://developers.facebook.com/docs/reference/dialogs/feed/). |
static interface |
WebDialog.OnCompleteListener
Interface that implements a listener to be called when the user's interaction with the dialog completes, whether because the dialog finished successfully, or it was cancelled, or an error was encountered. |
static class |
WebDialog.RequestsDialogBuilder
Provides a builder that allows construction of the parameters for showing the Feed Dialog (https://developers.facebook.com/docs/reference/dialogs/feed/). |
| Nested classes/interfaces inherited from interface android.content.DialogInterface |
|---|
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnShowListener |
| Field Summary | |
|---|---|
static int |
DEFAULT_THEME
|
| Fields inherited from interface android.content.DialogInterface |
|---|
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3 |
| Constructor Summary | |
|---|---|
WebDialog(Context context,
String url)
Constructor which can be used to display a dialog with an already-constructed URL. |
|
WebDialog(Context context,
String action,
Bundle parameters,
int theme,
WebDialog.OnCompleteListener listener)
Constructor which will construct the URL of the Web dialog based on the specified parameters. |
|
WebDialog(Context context,
String url,
int theme)
Constructor which can be used to display a dialog with an already-constructed URL and a custom theme. |
|
| Method Summary | |
|---|---|
void |
dismiss()
|
WebDialog.OnCompleteListener |
getOnCompleteListener()
Gets the listener which will be notified when the dialog finishes. |
void |
onAttachedToWindow()
|
protected void |
onCreate(Bundle savedInstanceState)
|
void |
onDetachedFromWindow()
|
void |
setOnCompleteListener(WebDialog.OnCompleteListener listener)
Sets the listener which will be notified when the dialog finishes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_THEME
| Constructor Detail |
|---|
public WebDialog(Context context,
String url)
context - the context to use to display the dialogurl - the URL of the Web Dialog to display; no validation is done on this URL, but it should
be a valid URL pointing to a Facebook Web Dialog
public WebDialog(Context context,
String url,
int theme)
context - the context to use to display the dialogurl - the URL of the Web Dialog to display; no validation is done on this URL, but it should
be a valid URL pointing to a Facebook Web Dialogtheme - identifier of a theme to pass to the Dialog class
public WebDialog(Context context,
String action,
Bundle parameters,
int theme,
WebDialog.OnCompleteListener listener)
context - the context to use to display the dialogaction - the portion of the dialog URL following "dialog/"parameters - parameters which will be included as part of the URLtheme - identifier of a theme to pass to the Dialog classlistener - the listener to notify, or null if no notification is desired| Method Detail |
|---|
public void setOnCompleteListener(WebDialog.OnCompleteListener listener)
listener - the listener to notify, or null if no notification is desiredpublic WebDialog.OnCompleteListener getOnCompleteListener()
public void dismiss()
dismiss in interface DialogInterfacedismiss in class Dialogpublic void onDetachedFromWindow()
onDetachedFromWindow in interface Window.CallbackonDetachedFromWindow in class Dialogpublic void onAttachedToWindow()
onAttachedToWindow in interface Window.CallbackonAttachedToWindow in class Dialogprotected void onCreate(Bundle savedInstanceState)
onCreate in class Dialog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||